package com.example.app.handler;

import net.sf.calibur.engine.Event;
import net.sf.calibur.engine.task.Task;
import net.sf.calibur.transport.CommandMessageEvent;

import com.example.app.CommandHandler;

public class MapCommandHandler extends CommandHandler {
	public MapCommandHandler() {
		super("MapCommandHandler");

		// 测试AllType指令(2000)
		addTask(new Task(2000) {
			@Override
			public void execute(Event event) throws Exception {
				logger.debug("测试AllType...");
				CommandMessageEvent cme = (CommandMessageEvent) event;
				cme.getOutput().copy(cme.getInput());
				cme.sendResponse();
			}
		});
	}
}
